﻿@model WebSite.Web.Models.RecruitmentVM

@{
    ViewBag.Title = "招聘信息维护";
    Layout = "~/Views/Shared/_ViewFormPage.cshtml";
}

@section head{
    <script type="text/javascript">
        $(function () {
            $("#btnSave").click(function () {
                if ($("form").valid()) {
                    $('form').ajaxSubmit({
                        success: function (callback) {
                            if (callback) {
                                $.ligerDialog.success('保存成功', function (yes) {
                                    self.location.href = "/Recruitment/Edit";
                                });
                            }
                            else {
                                $.ligerDialog.error('保存失败');
                            }
                        },
                        error: function (ex) {
                            $.ligerDialog.error('保存失败');
                        }

                    });
                }
            });
        });

    </script>
    @if (false)
    {
        <script src="../../Scripts/jquery-1.7.1.js"></script>
    }
    <style type="text/css">

    </style>
}
<div id="header" class="header">
    <h4>公司联系人信息 -- 维护</h4>
</div>
@using (Html.BeginForm("Edit", "Recruitment", FormMethod.Post))
{
    @Html.HiddenFor(model => model.Id)
    @Html.HiddenFor(model => model.CompanyId)
    @Html.HiddenFor(model => model.ReleaseDate)
    <div id="detail_forms">
        <div class="formsItems clearfix">
            <div class="formItem labelItem">
                职位职能
            </div>
            <div class="formItem textItem">
                @Html.TextBoxFor(model => model.Positionfunction, new { @class = "texts" })
            </div>
            <div class="formItem msgItem">
            </div>
        </div>
        <div class="formsItems clearfix">
            <div class="formItem labelItem">
                薪水范围
            </div>
            <div class="formItem textItem">
                @Html.TextBoxFor(model => model.SalaryRange, new { @class = "texts" })
            </div>
            <div class="formItem msgItem">
            </div>
        </div>
        <div class="formsItems clearfix">
            <div class="formItem labelItem">
                工作地点
            </div>
            <div class="formItem textItem">
                @Html.TextBoxFor(model => model.WorkSite, new { @class = "texts" })
            </div>
            <div class="formItem msgItem">
            </div>
        </div>
        <div class="formsItems clearfix">
            <div class="formItem labelItem">
                招聘人数
            </div>
            <div class="formItem textItem">
                @Html.TextBoxFor(model => model.Number, new { @class = "texts" })
            </div>
            <div class="formItem msgItem">
            </div>
        </div>
        <div class="formsItems clearfix">
            <div class="formItem labelItem">
                工作年限
            </div>
            <div class="formItem textItem">
                @Html.TextBoxFor(model => model.WorkLife, new { @class = "texts" })
            </div>
            <div class="formItem msgItem">
            </div>
        </div>
         <div class="formsItems clearfix">
            <div class="formItem labelItem">
                学    历
            </div>
            <div class="formItem textItem">
                @Html.TextBoxFor(model => model.Degree, new { @class = "texts" })
            </div>
            <div class="formItem msgItem">
            </div>
        </div>
         <div class="formsItems clearfix">
            <div class="formItem labelItem">
                职位描述
            </div>
            <div class="formItem textItem">
                @Html.TextAreaFor(model => model.JobDescription, new { @class = "texts",style="height:150px;width:500px" })
            </div>
            <div class="formItem msgItem">
            </div>
        </div>
        

        <div id="btnContainer" class="formsItems">
            <div class="formItem labelItem">
                &nbsp;
            </div>
            <div class="formItem textItem">
                <a href="javascript:void(0);" id="btnSave">保存</a>
                <a href="Index" id="btnCancel">取消</a>
            </div>
            <div class="formItem">
            </div>
        </div>
        <div class="formsItems"></div>
    </div>
}
